<script lang="ts" setup>
import { onMounted } from "vue"
import { useGreyAndColorWeakness } from "@@/composables/useGreyAndColorWeakness"
import { useTheme } from "@@/composables/useTheme"
import zhCn from "element-plus/es/locale/lang/zh-cn" // Element Plus 中文包
import { usePermissionStore } from "@/pinia/stores/permission"
import { useSettingsStore } from "@/pinia/stores/settings"
import { setCssVar } from "@/common/utils/css" // Corrected import path

const permissionStore = usePermissionStore()
const settingsStore = useSettingsStore()

const { initTheme } = useTheme()

const { initGreyAndColorWeakness } = useGreyAndColorWeakness()

// const { initStarNotification, initStoreNotification, initMobileNotification } = usePany() // Removed per user request

onMounted(() => {
  // initStarNotification()
  // initStoreNotification()
  // initMobileNotification()
  // Removed setCssVar() call as it was causing an error and its purpose was unclear.
})

// 初始化主题
initTheme()

// 初始化灰色模式和色弱模式
initGreyAndColorWeakness()

// #region 初始化通知
// #endregion
</script>

<template>
  <el-config-provider :locale="zhCn">
    <router-view />
  </el-config-provider>
</template>
